from django.db import models


# Create your models here.
class HotWeibo(models.Model):
    source_id = models.CharField(max_length=255)
    title = models.CharField(max_length=255)
    desc = models.CharField(max_length=255)
    author = models.CharField(max_length=255)
    timestamp = models.IntegerField()
    hot = models.IntegerField()
    url = models.CharField(max_length=255)
    mobile_url = models.CharField(max_length=255)

    class Meta:
        db_table = 'hot_weibo'


class Hot51CTO(models.Model):
    source_id = models.CharField(max_length=255)
    title = models.CharField(max_length=255)
    cover = models.CharField(max_length=255)
    desc = models.CharField(max_length=255)
    timestamp = models.IntegerField()
    url = models.CharField(max_length=255)
    mobile_url = models.CharField(max_length=255)

    class Meta:
        db_table = 'hot_51cto'
